package com.uuuo.retrofit2;


import com.uuuo.retrofit2.Converter.HttpResult;
import com.uuuo.retrofit2.Entity.ArticleList;
import com.uuuo.retrofit2.Entity.BannerEntity;

import java.util.List;

import io.reactivex.Observable;
import retrofit2.http.GET;
import retrofit2.http.Path;
import retrofit2.http.Query;

/**
 * Created by JiaTao on 2016/11/24.
 */

public interface WanAndroidApi {
    @GET("banner/json")
//    @GET("http://10.2.1.151/index111.html")
    Observable<HttpResult<List<BannerEntity>>> getBannerList();

    @GET("project/list/{page}/json")
    Observable<HttpResult<ArticleList>> getProjectList(@Path("page") int page, @Query("cid") int cid);

//    @GET("project/list/2/json?cid=294")
//    Observable<HttpResult<ArticleList>> getProjectList();
}
